import { useAxios } from '@/hooks/web/useAxios'
import { ReportDay1VO,ReportDay1PageReqVO,ReportDay1ExcelReqVO } from './types'

const request = useAxios()

// 查询日报表1列表
export const getReportDay1PageApi = async (params: ReportDay1PageReqVO) => {
    return await request.get({ url: '/water/report-day1/page', params })
}

// 查询日报表1详情
export const getReportDay1Api = async (id: number) => {
    return await request.get({ url: '/water/report-day1/get?id=' + id })
}

// 新增日报表1
export const createReportDay1Api = async (data: ReportDay1VO) => {
    return await request.post({ url: '/water/report-day1/create', data })
}

// 修改日报表1
export const updateReportDay1Api = async (data: ReportDay1VO) => {
    return await request.put({ url: '/water/report-day1/update', data })
}

// 删除日报表1
export const deleteReportDay1Api = async (id: number) => {
    return await request.delete({ url: '/water/report-day1/delete?id=' + id })
}

// 导出日报表1 Excel
export const exportReportDay1Api = async (params: ReportDay1ExcelReqVO) => {
    return await request.download({ url: '/water/report-day1/export-excel', params })
}
